package com.jec.module.sysconfig.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jec.module.sysconfig.entity.NumberEntry;

public interface NumberEntryRepository extends JpaRepository<NumberEntry, Integer>{
	
	public List<NumberEntry> findAllByNetunit(int netunit);
	
	public boolean existsByNetunitAndSlotAndTsAndIdNot(int netunit, int slot, int ts, int id);
	
	public boolean existsByNumberAndIdNot(String number, int id);
	
	public List<NumberEntry> findAllByNumberIn(List<String> numbers);
	
}
